import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:pasteboard/pasteboard.dart';


class Clipboard {
   static  write(){
      Pasteboard.writeText("hello copy");
   }
   static writeImg(Uint8List image)async {
    await Pasteboard.writeImage(image);
   }

   static Future<String?> read() async {
    String? str = await Pasteboard.text;
    return str;
   }

   static Future<Uint8List?> readImage() async {

      return  await Pasteboard.image;
   }


}
